package br.edu.univas.si.es.correios.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import javax.persistence.Entity; 

@Entity
@Table(name="pedidos")
public class Order {
	private String sendMode;
	private String senderStreet;
	private String destinataryStreet;
	private int senderStreetNumber;
	private int destinataryStreetNumber;
	private String senderNeighbor;
	private String destinataryNeighbor;
	private String senderCity;
	private String destinataryCity;
	private String senderState;
	private String destinataryState;
	private float totalCosts;
	private int senderCep;
	private int destinataryCep;
	private int deliveryDays;
	private int orderNumber;
	
	@Id
	
	@SequenceGenerator( name = "num_rastreamento", sequenceName = "pedidos_num_rastreamento_seq", allocationSize = 1 )  
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="num_rastreamento")
	
	@Column(name="num_rastreamento")
	public int getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}
	
	@Column(name="modo_envio")
	public String getSendMode() {
		return sendMode;
	}
	public void setSendMode(String sendMode) {
		this.sendMode = sendMode;
	}
	
	@Column(name="log_emit")
	public String getSenderStreet() {
		return senderStreet;
	}
	public void setSenderStreet(String senderStreet) {
		this.senderStreet = senderStreet;
	}
	
	@Column(name="log_dest")
	public String getDestinataryStreet() {
		return destinataryStreet;
	}
	public void setDestinataryStreet(String destinataryStreet) {
		this.destinataryStreet = destinataryStreet;
	}
	
	@Column(name="num_emit")
	public int getSenderStreetNumber() {
		return senderStreetNumber;
	}
	public void setSenderStreetNumber(int i) {
		this.senderStreetNumber = i;
	}
	
	@Column(name="num_dest")
	public int getDestinataryStreetNumber() {
		return destinataryStreetNumber;
	}
	public void setDestinataryStreetNumber(int destinataryStreetNumber) {
		this.destinataryStreetNumber = destinataryStreetNumber;
	}
	
	@Column(name="bairro_emit")
	public String getSenderNeighbor() {
		return senderNeighbor;
	}
	public void setSenderNeighbor(String senderNeighbor) {
		this.senderNeighbor = senderNeighbor;
	}
	
	@Column(name="bairro_dest")
	public String getDestinataryNeighbor() {
		return destinataryNeighbor;
	}
	public void setDestinataryNeighbor(String destinataryNeighbor) {
		this.destinataryNeighbor = destinataryNeighbor;
	}
	
	@Column(name="cid_emit")
	public String getSenderCity() {
		return senderCity;
	}
	public void setSenderCity(String senderCity) {
		this.senderCity = senderCity;
	}
	
	@Column(name="cid_dest")
	public String getDestinataryCity() {
		return destinataryCity;
	}
	public void setDestinataryCity(String destinataryCity) {
		this.destinataryCity = destinataryCity;
	}
	
	@Column(name="estado_emit")
	public String getSenderState() {
		return senderState;
	}
	public void setSenderState(String senderState) {
		this.senderState = senderState;
	}
	
	@Column(name="estado_dest")
	public String getDestinataryState() {
		return destinataryState;
	}
	public void setDestinataryState(String destinataryState) {
		this.destinataryState = destinataryState;
	}
	
	@Column(name="preco")
	public float getTotalCosts() {
		return totalCosts;
	}
	public void setTotalCosts(float totalCosts) {
		this.totalCosts = totalCosts;
	}
	
	@Column(name="cep_emit")
	public int getSenderCep() {
		return senderCep;
	}
	public void setSenderCep(int senderCep) {
		this.senderCep = senderCep;
	}
	
	@Column(name="cep_dest")
	public int getDestinataryCep() {
		return destinataryCep;
	}
	public void setDestinataryCep(int destinataryCep) {
		this.destinataryCep = destinataryCep;
	}
	

	@Column(name="prazo")
	public int getDeliveryDays() {
		return deliveryDays;
	}
	public void setDeliveryDays(int deliveryDays) {
		this.deliveryDays = deliveryDays;
	}
}
